namespace EFDemo
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Dept")]
    public partial class Dept
    {
        public int DeptId { get; set; }

        [Required]
        [StringLength(50)]
        public string DeptName { get; set; }

        [StringLength(20)]
        public string DeptCode { get; set; }

        public virtual ICollection<Emp> Emps { get; set; } = new List<Emp>();
    }
}
